home *** CD-ROM | disk | FTP | other *** search
/ Giga Pack / Giga Pack CD1.iso / cards / lines / lines.doc < prev    next >
Text File  |  1992-10-18  |  21KB  |  471 lines

  1.  
  2.  
  3.                 Lines of Luck
  4.                 version 1.01
  5.  
  6.                    by Glenn Franck
  7.               October 12, 1992.
  8.  
  9.  
  10.  
  11.  
  12. Welcome! This is a gambling game, modelled after the "Lucky Lines"-style
  13. games which are popping up everywhere. Basically, for those of you not
  14. exposed to this game before, it's an enhanced one-armed bandit style
  15. slot machine, with 9 "wheels" instead of just three. As a result, there
  16. are eight different lines you may win on (3 horizontal, 3 vertical, and
  17. 2 diagonal), so a little strategy is involved.
  18.  
  19.  
  20.  
  21.    ---------------------
  22. 0) CONTENTS OF THIS FILE
  23.    ---------------------
  24.  
  25. 1) HARDWARE REQUIREMENTS
  26. 2) READ THIS PART
  27. 3) SPECIAL DISCLAIMER
  28. 4) INSTRUCTIONS
  29. 5) THE SETUP SCREEN
  30. 6) A BIT ABOUT THE WRITING OF IT
  31. 7) FOR PLAYERS NEW TO THIS TYPE OF GAME
  32. 8) REGISTRATION
  33. 9) BUGS
  34.  
  35.  
  36.  
  37.    ---------------------
  38. 1) HARDWARE REQUIREMENTS
  39.    ---------------------
  40.  
  41.     The game used EGA mode 0, so you will certainly need at least an EGA
  42. monitor. It may be played in grayscale, but color is so much nicer. :)
  43.  
  44.     I developed it on a 386sx/16Mhz machine, and it runs quite nicely on
  45. this. Of course, the faster the machine that you run it on, the faster the
  46. animation will be, but you can probably run it on any type of processor -
  47. just expect it to be a little slower on slower machines.
  48.  
  49.     As for memory, 512K will do it. I haven't checked on using less,
  50. but I think it will run on only 256K, maybe less, though I'm not certain, and
  51. cannot recommend it.
  52.  
  53.  
  54.  
  55.    --------------
  56. 2) READ THIS PART
  57.    --------------
  58.  
  59.     I've set up this doc file so that you can get right to the game.
  60. Please note that this product is shareware! In order to make this aspect as
  61. unintrusive as possible, and in the spirit of shareware, I have put no tricks
  62. in to get you to register it, nor does the game constantly remind you to send
  63. in a registration fee. All I will say to try to convince you is that
  64. registration is a measly $10, and I've put almost a year of work into this
  65. program, so, if you like it, please make me feel better by sending $10 (or
  66. more!). This is the full game as it stands now, nothing held back (no
  67. registered/unregistered versions). However, I cannot guarantee that I will
  68. not update this and release later versions. If you wish, you can guarantee
  69. that you will receive the next update when it becomes available - this will
  70. be only and extra $5 (to cover mailing and disks costs, as well as an
  71. administrative fee! :-)  ). If you wish to have the C-code to look at, I can
  72. also send you that (an additional $5 more). I will detail this more later.
  73.  
  74.     Please note that while I have conducted extensive testing of this
  75. game, I cannot guarantee that it is completely error- and bug-free. I have
  76. virus-checked it with for the latest viruses before releasing it, but, again,
  77. cannot absolutely guarantee that nothing has been picked up since this time.
  78. So, I take no responsibility for any damage that may occur to your computer
  79. system, software or other programs as a results of using this program. I
  80. assume no liability for any problems resulting from the use or misuse of
  81. this program.
  82.  
  83.  
  84.  
  85.    ------------------
  86. 3) SPECIAL DISCLAIMER
  87.    ------------------
  88.  
  89.     This is a betting/gambling game. I wrote it specifically for a friend
  90. of mine who has a gambling problem, so that he could play the game without
  91. actually losing any money on it. If you use this game, you take the risk that
  92. it may entice you to play other gambling games and possibly lose money. I
  93. assume no responsibility for this. You should note that most gambling games
  94. of this sort are not as easy as this one can be, and are designed to make
  95. money. By creating this game, I do not necessarily condone gambling in any
  96. sort. This game is to be played solely for entertainment purposes, or as an
  97. alternative to losing money in casinos or bars. It is not to be used for any
  98. monetary gain by other parties.
  99.  
  100.  
  101.  
  102.    ------------
  103. 4) INSTRUCTIONS
  104.    ------------
  105.  
  106.     There is a bit of online help, mainly just showing what keys do what.
  107. Below is a little more detail, followed by a summary of the keys. Note that
  108. you may play as long as you want, and your score may go up to 2^31-1, though
  109. its doubtful you'll ever get that high! If your credits reach 0, you'll
  110. be prompted to quit or continue. The 'Q' key will quit; any other will
  111. continue.
  112.  
  113. TO START "LINES OF LUCK":
  114.     simply type "lines" at the DOS prompt (there are no modifiers), and
  115.     wait for the graphics to load.
  116. TO INCREASE YOUR BET:
  117.     press the 'bet' key (default is '+' key); max bet is 32 (equal to
  118.     8 bet lines, times a 4-bet per line), and no, you cannot change
  119.     the order that the bet lines light up. Also, you cannot    decrease
  120.     your bet, so try not to bet over what you wanted to. You start with
  121.     a certain number of credits, default being 20. You can never bet
  122.     more money than you have.
  123. TO START THE GAME:
  124.     (each spin of the wheels is a 'game') press the 'start'    key (default
  125.     is the enter key). Note that you have to bet before you can play.
  126.     There is an exception to this: if your current number of credits is
  127.     greater than or equal to the bet you made on the last game, then
  128.     before you press the bet key, pressing the start key (your bet will
  129.     be at 0) will automatically bet what you had bet last game, and spin
  130.     the wheels for you.
  131. IF YOU WIN:
  132.     a) you may double up, by pressing the 'double' key (default is '+').
  133.        This will bring you to a separate double screen, with playing cards.
  134.        The object is to try to guess what the hidden card is, either 'big'
  135.        or 'small'. Big cards are 8-King (8,9,10,J,Q,K), small are Ace-6
  136.        (A,2,3,4,5,6). 7 is even, and does nothing. The last 6 cards that
  137.        have been drawn are shown, thus giving you a bit of help as to what
  138.        may come up next. Note, however, that the hidden card is restricted
  139.        from being any of these 6 cards, but may be ANY OTHER, even one
  140.        that was picked only seven times ago.
  141.     TO PICK BIG: press the 'big' key (default is '+').
  142.     TO PICK SMALL: press the 'small' key (default is 'enter').
  143.  
  144.        If you pick correctly, your winnings will double, and the three
  145.        number wheels will spin. If two or more sevens show up here, your
  146.        winnings will increase even more. You can then double again, or
  147.        collect you winnings (see below). As long as you guess correctly,
  148.        you can keep doubling. However, if you guess incorrectly, you will
  149.        lose all that you would have won, and automatically be returned
  150.        to the main screen.
  151.  
  152.  
  153.     b) you may decide to collect your winnings, adding them to your credit
  154.        pile. Do this by pressing the 'take' key (default is 'enter').
  155.  
  156. Those are the basic playing keys. They all are predefined, but may be changed
  157. at will. There are also some other keys of importance, however, and these are
  158. outlined below.
  159.  
  160. TO SHOW PAYOUTS:
  161.     press 'F1' at any time while on the main screen (the screen with the
  162.     nine wheels on it).
  163. TO TOGGLE THE HELP SCREEN ON/OFF:
  164.     press the 'H' key at any time.
  165. TO SHOW THE SETUP SCREEN:
  166.     press the 'S' key at any time.
  167. TO RESET CREDITS TO 0:
  168.     press 'R' when your bet is 0. This is the only time you may do this.
  169.     You may restart playing with the starting number of credits by
  170.     pressing any key other than 'Q'. Pressing that key will quit.
  171. TO QUIT THE GAME:
  172.     aside from being in the above situation, you may quit at any point
  173.     (except from the setup screen) by pressing ESCape. You will be
  174.     prompted to confirm this intention, of course, as in any good
  175.     application! :)
  176.  
  177.  
  178. In summary, the keys are as follows:
  179.  
  180. (default keys)
  181.     '+' - increase bet
  182.     'ENTER' - start (or spin, if you prefer)
  183.     '+' - double up on winnings
  184.     'ENTER' - take winnings
  185.     '+' - pick BIG
  186.     'ENTER' - pick SMALL
  187.  
  188. (unchangeable keys)
  189.     'S' - display setup screen
  190.     'H' - toggle key help on/off
  191.     'R' - reset credits to 0 (only when bet==0)
  192.        'F1' - show payout screens
  193.  
  194.  
  195.  
  196.    ----------------
  197. 5) THE SETUP SCREEN
  198.    ----------------
  199.  
  200.     The setup screen allows you to customize the game in many ways. You can
  201. navigate through the options by using the arrow keys, and pick an option to
  202. change by using the ENTER key. Once you are finished making changes, you can
  203. save the changes to disk so that they will become the default setup, or you
  204. may, by pressing ESCape, use them for only the current run of the game. Note
  205. that changes will not be saved, and you may not exit the setup screen, while
  206. there are problems in keys you have defined. This means that the same key
  207. cannot be used for two conflicting functions (ie, the same key cannot be used
  208. for both BIG and SMALL, TAKE and DOUBLE, or BET and START). You will have to
  209. fix these problems, then save or exit.
  210.  
  211.     Note ESCape will exit the setup screen, not quit the program. To quit
  212. the program, you must first exit the setup screen, then press ESCape again.
  213.  
  214.  
  215. I) REDEFINING KEYS:
  216.     Press ENTER once you are on the key you wish to redefine. The current-
  217. ly defined key will change from white to green. You will now be able to
  218. redefine this key as any key you press, with the exception of the unchangeable
  219. keys listed above (R, S, H, F1). When you have decided upon what key you wish
  220. to use for this function, press ESCape. The key will remain, and change from
  221. green to white. DO NOT DEFINE THE SAME KEYS FOR BOTH (BIG AND SMALL),
  222. (TAKE AND DOUBLE), or (BET AND START)!
  223.  
  224. II) ADJUST SPEED:
  225.     Press ENTER while 'Adjust speed' is highlighted to change this option.
  226. You may toggle this option between three settings by pressing the spacebar.
  227. If it is set to ADJ, then the length of time that the wheels spin will be
  228. adjusted so that the length is not too short. The faster a machine you have,
  229. the faster the animation will be, so the animation must last longer to get
  230. the same effect. Setting the option to SND will adjust it so the sound will
  231. be about the same as on the machine I wrote the program on, so should be more
  232. tolerable. Turning this to OFF will allow the wheels to spin at the maximum
  233. speed your machine allows. Note that if your machine is as slow or slower than
  234. mine, then this option should make no difference. Press ESCape when you have
  235. decided what you wish this option to be.
  236.  
  237. III) STARTING CREDITS:
  238.     Pressing ENTER while 'Starting credits' is highlighted will allow you
  239. to change the number of credits that you start with initially or after
  240. resetting your credits. The default is 20, but can be any number from 1-100.
  241. Pressing either the up arrow key, the '+' key or the spacebar will increase
  242. this number by 1. Pressing either the down arrow key or the '-' key will
  243. decrease this value by 1. If you exceed 100, the number will roll over to 1.
  244. Similarly, if you go less than 1, the number will change to 100. Press ESCape
  245. when you have decided on the starting credits you want.
  246.  
  247. IV) SOUND:
  248.     Press ENTER while 'Sound' is highlighted, and you will be able to
  249. toggle the sound on or off. The spacebar will switch the value between YES
  250. and NO. Press ESCape when you have decided if you want it on or not.
  251.  
  252. V) SPIN STOP:
  253.     Pressing ENTER when 'Spin stop' is highlighted will allow you to
  254. decide whether you want this option on or not. The spacebar will toggle it
  255. on or off. If it is on, you can stop the spinning of the wheels at any time
  256. by pressing any key. All spinning wheels, regardless of where they are, will
  257. come to a halt almost immediately. By doing this you override other options
  258. which would otherwise control what comes up. This could be either good or
  259. bad. It's up to you to decide. Press ESCape once you have picked what you want
  260. this to be on.
  261.  
  262. VI) HELP SCREEN
  263.     Select this to change by pressing ENTER when it is highlighted. The
  264. spacebar will toggle this option on and off. This controls whether the key
  265. help block on the left side of the screen is shown. You may also toggle the
  266. key help on and off by pressing the 'H' key when you are not in the setup
  267. screen. Press ESCape to enter the value you have selected.
  268.  
  269. VII) CHANCE OF BIG WIN:
  270.     Press ENTER when this is highlighted to change its value. The space-
  271. bar will cycle through the options. By 'big win', I mean a screenful of one
  272. item coming up. This is a big payout. You can select it to be 'OFF', which
  273. means, unless it comes up randomly (highly unlikely), you won't get a big
  274. payout. Selecting any other setting means that the odds of getting a big
  275. payout are calculated as follows:
  276.  
  277.  1 in ((800 - (#spins so far)*5 + (credits/2)) / (setting chosen))
  278.  
  279. where (#spins so far) refers to the number of spins since the last big win,
  280. and (setting chosen) is 1 for LOW, 2 for REG and 3 for HI Thus, if you
  281. first start off at 20 credits, you would have the following odds of getting
  282. a screenful of all one item:
  283.  
  284. LOW: 1 in 810
  285. REG: 1 in 405
  286. HI:  1 in 270
  287.  
  288.     The way odds are calculated, the longer you play, the better your
  289. odds. Of course, the higher your credits, the worse your odds! (You don't
  290. need to win if you're doing good, anyway!) This option is overridden if
  291. you have spin_stop on and stop the wheels - ie, you won't get a screenful,
  292. even if you were supposed to otherwise, so use the spin_stop with care!
  293.  
  294.     Note that a big win could also mean swinging bells (! - you'll see
  295. if and when you get them - definitely cool!) or multiple sevens (>4). It
  296. does NOT mean all fruits (a screenful of nothing but fruits - oranges, plums,
  297. cherries or watermelons).
  298.  
  299.     When you have decided what you wish this option to be, press ESCape.
  300.  
  301. VIII) ODDS OF WINNING
  302.     This affects just how often you will win - specifically, how often
  303. your credits will increase. If you win, double it, and lose - then it doesn't
  304. count as a win (aren't you lucky!). The numbers mean that if you set it to
  305. having an X% chance of winning, then if, in the last 20 games you have won less
  306. than X% of the time, you MAY win - its not guaranteed. However, if your winning
  307. percentage is >= X%, then you _won't_win_ on this spin. In other words, you
  308. will win no more than X% of the time.
  309.  
  310.     By using the spacebar you can cycle through the percentages. Note
  311. they run from 30% to 90%, then RND. Winning less than 30% of the time is
  312. simply unplayable. RND is equivalent to 100%; i.e., there are no restrictions
  313. on how often you can win - it becomes totally random (as much as a computer
  314. can be! :) ) This is another option, BTW, that gets affected by spin stop -
  315. I can't restrict the winning when you stop the wheels, so your odds may
  316. actually increase.
  317.  
  318.     When you're done, press ESCape.
  319.  
  320. IX) SAVE CHANGES TO DISK
  321.     When you've got this option highlighted, press ENTER to save the
  322. setup data to disk. It creates (or overwrites) a file called LINES.INI, which
  323. will automatically be loaded the next time you run Lines of Luck, so that
  324. you may use these same options again.
  325.  
  326.  
  327.  
  328.    -----------------------------
  329. 6) A BIT ABOUT THE WRITING OF IT
  330.    -----------------------------
  331.  
  332.     As I said earlier, I started writing this game in the late summer of
  333. 1991, when it became clear that a friend of mine was wasting too much of his
  334. money on these games in the bars. I wrote this so that he wouldn't have to
  335. do it anymore. In total, I worked on it heavily for about the first four
  336. months (almost every day), then did little for about the next four months, then
  337. I have worked on it quite a bit again in the last four months in order to
  338. finally get it finished so that I may work on my next application. I haven't
  339. decided what that next project will be yet.
  340.  
  341.     I wrote the game in Turbo C (actually, I used TC++, but have no C++
  342. code in here). There are almost 4500 lines of code, and I've tried to make
  343. the game both as pretty-looking and user-friendly (read: customizeable) as
  344. possible. If I you discover any bugs, however, or have any suggestions then
  345. please send them to me at one of my addresses at the end of this file.
  346.  
  347.     The game uses EGA mode 0, for several reasons. First and foremost is
  348. that this way I can have four pages to flip between, so I don't have to
  349. redraw the screen every time a different one comes up - makes things faster
  350. and easier. Also, this mode allows me to use 16 colors, so I can make things
  351. look much prettier. A final reason is that I use putimage() to show the
  352. animation of the wheels, so using this mode (640x200) gives me good resolution,
  353. but allows pictures to be put up faster (VGA - 640x480 - would be more than
  354. twice as slow). Also, to speed up the drawing, I made the wheels smaller than
  355. the commercial versions. I think you get used to it pretty fast, though. Who
  356. knows - I may release a hi-res, large-wheel, full-screen version of this game
  357. (with digitized graphics maybe) if I receive good response to this one!
  358.  
  359.     All the images were drawn using graphics routines (line(), ellipse(),
  360. etc.) and were saved in the .dat files. I have separate routines I used to
  361. draw these images, and these C files are available with the C-code if you
  362. want it. As I said above, I'd like to try digitizing some images and using
  363. them in a later release of the game - should look neat! But, I'll have to
  364. see about that.
  365.  
  366.  
  367.  
  368.    ------------------------------------
  369. 7) FOR PLAYERS NEW TO THIS TYPE OF GAME
  370.    ------------------------------------
  371.  
  372.     There are a few things you should know about this sort of game. First,
  373. it's important to note that not only lines of all the same type are the only
  374. winners. A row of any three types of bars (1-bars, 2-bars and 3-bars) will
  375. also pay out. Also note that cherries are very important in this game. If
  376. any line STARTS with a cherry (along the leftmost column or top row, depending
  377. on the line), you also win. Two cherries starting a line is also worth some-
  378. thing (a little more than one cherry).
  379.  
  380.     Two other ways to win are by getting four corners the same item, or
  381. to get a screen of all fruits (no 7s, bells or bars). If you get a screen of
  382. all fruits, you will not only get a fairly substantial payout, but, as a bonus
  383. you will also get the value of the '???' indicator. Note that this indicator
  384. is actually a count of the number of 7s that have come up so far. If you get
  385. an 'all fruits' screen, then you get the '???' value added to your score, and
  386. it gets reset to 0.
  387.  
  388.     As far as betting and payouts go, the F1 key will show payouts for
  389. line wins and screen wins. Your line win will be the value shown on the
  390. payout screen, multiplied by your bet on that line. A screen win will be the
  391. value indicated on the payout screen, multiplied by your total bet. All fruits
  392. and four corners multiply your total bet.
  393.  
  394.     Note that each line has a small pointed square attached to it, with
  395. a number. The number will light up when you place a bet on that line, and will
  396. fill the square 1/4 full. The lines light up in order of the numbers, and
  397. cannot be changed. Each time you add another bet to a line, another 1/4 of
  398. the square will be filled. If a square is 3/4 full, it shows you have a 3-bet
  399. on that line. If that line wins, then the normal win on that line will be
  400. multiplied by 3. The maximum bet on a line is 4, and there are 8 lines, so a
  401. maximum total bet will be 32.
  402.  
  403.     As a payout example, suppose you bet 16 (2 per line). If you get a
  404. cherry in the middle of the top row, you would win 4. (That equals the payout
  405. for a single cherry - 2 - times the bet on line #7 - 2 - for a total of four.)
  406. However, suppose there was a single bar in each of the four corners - then
  407. your win would be 32 (four corners is worth 2, times your total bet of 16
  408. would equal 32). Anyway, you see how it goes. Play a bit, experiment, and
  409. see how much you can win. Have fun. After all, that's what the game was
  410. intended for!
  411.  
  412.  
  413.  
  414.    ------------
  415. 8) REGISTRATION
  416.    ------------
  417.  
  418.     If you like this game, please register it. Basic registration is
  419. only $10, and it would be a nice reward for me after all my hard work to see
  420. that someone is enjoying the fruits of my labour.
  421.  
  422.     If you like, for an additional $5, I will send you the next update of
  423. the game when its become available. At the very least, that should include
  424. bug fixes and upgrades to the game, if not an entirely overhauled version of
  425. it.
  426.  
  427.     For you programmers out there, I am also willing to share the code
  428. for the game and for the images used in the game. For $5 extra, I will send
  429. you this on a disk of your size preference.
  430.  
  431.     So, please send $10 (or more, if you like) plus money for either of
  432. the extras mentioned above to the following address:
  433.  
  434.     Glenn Franck
  435.     38 Virginia Avenue
  436.     Dartmouth
  437.     Nova Scotia
  438.     Canada
  439.     B2W 2Z7
  440.  
  441.     - Please indicate what the extras are that you desire to have!
  442.     - Please indicate what size disk you prefer (5-1/4" or 3-1/2").
  443.     - Please indicate the version number of the game!
  444.     - Dollars quoted are Canadian dollars.
  445.  
  446. ** If you like, use the registration sheet in the file register.doc **
  447.  
  448.  
  449.  
  450.    ----
  451. 9) BUGS
  452.    ----
  453.  
  454.     None that I'm aware of. However, if you find any, or have any comments
  455. or suggestions about the game, please send e-mail to
  456.  
  457.     franck@ug.cs.dal.ca    (this account may disappear soon)
  458.     or  gfranck@ac.dal.ca
  459.  
  460. or you can send regular mail to the above address, if you're really desperate!
  461.  
  462.  
  463.  
  464. Well, thanks for taking the time to read this through. I hope you enjoy the
  465. game.
  466.  
  467. -Glenn Franck
  468.  October 12, 1992.
  469.  
  470.  
  471.